﻿using SocketCore.Network;

namespace SocketCore
{
    public interface INetworkHandler
    {
        // Methods
        void OnMessageReceived(IoSession session, Message message);
        void OnMessageSent(IoSession session, Message message);
        void OnConnected(IoSession session);
        void OnDisconnected(IoSession session);
        void OnError(IoSession session, System.Exception error);
        void OnIdle(IoSession session);

        // Properties
        INetworkHandler NextNetworkHandler { get; set; }
    }
}
